package com.arpa.oms.service;

import com.arpa.oms.domain.entity.Sale;
import com.arpa.oms.domain.entity.SalePacks;

import java.util.List;

public interface IOrderDealService {

    /**
     * 组合商品转明细、合并相同商品
     * @param sale
     * @return
     */
    Sale composeToDetail(Sale sale);

    /**
     * 拆单
     * @param sale
     * @return
     */
    List<SalePacks> unpack(Sale sale);

    /**
     * 合单
     * @param saleList
     * @return
     */
    List<Sale> merge(List<Sale> saleList);
}
